<%--
  Created by IntelliJ IDEA.
  User: 17126
  Date: 2022/3/9
  Time: 13:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>网页计数</title>
</head>
<body>

<%!
    int n = 0;

    int add(int x, int y) {
        return x + y;
    }%>
<%
    int m = 0;
    n++;
    m++;
    int result = add(1, 2);%>
<%= "成员变量n的值为：" + n%><br>
<%= "局部变量m的值为：" + m%><br>
<%= "1+2=" + result%><br>
<%= "第" + n + "个客户"%><br>

</body>
</html>
